<!DOCTYPE html>
{%extends "base.html"%}
{% import "bootstrap/wtf.html" as wtf %}
{% block head %}
{{ super() }}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="../static/css/demo.css" />
<link rel="stylesheet" type="text/css" href="../static/css/style1.css" />
{% endblock %}
{%block title %}来点好康的{% endblock %}

{%block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle"
                    data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ url_for('index') }}">首页</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a class="navbar-brand" href="{{ url_for('duowan.index',channel='vid', page=1) }}">图库</a></li>
{#                <li><a class="navbar-brand" href="{{ url_for('duowan.index') }}">图库</a></li>#}
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if g.username != 'anonymous' %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
{#                        <img src="{{ current_user.gravatar(size=18) }}">#}
                        欢迎你，{{ g.username }}！ <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/">修改密码</a></li>
                        <li><a href="/">修改邮箱</a></li>
                        <li><a href="{{ url_for('users.logout') }}">退出登录</a></li>
                    </ul>
                </li>
                {% else %}
                <li><a href="{{ url_for('users.login') }}">登录</a></li>
                <li><a href="{{ url_for('users.register') }}">注册</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>
{% endblock %}

{% block page_content %}
</div>

<div class="container">
			<header>
                <h1>{{ video.channel }}<span>{{ video.page }}/{{ total_page }}</span></h1>
                <h2>{{ video.message }}</h2>
			</header>
    <div style="width:602px;margin: auto;
     left: 0;
     right: 0;">
        <video controls width="602px" height="345px">
{#        <source src="https://gmp4.dwstatic.com/1941/0639579460.mp4" type="video/mp4">#}
        <source src="{{ video.url }}" type="video/mp4">
        </video>
        </div>
    <div>
			<section>
                <div id="container_buttons">

                        <a href="#" class="a_demo_one">
                           上一张
                        </a>
                         <a href="#" class="a_demo_one">
                            下一张
                         </a>
                </div>
			</section>
        </div>
</div>
{% endblock %}


